#include <sys/ipc.h>
#include <sys/msg.h>
#include <sys/sem.h>
#include <sys/shm.h>
#include <sys/socket.h>

int
main()
{
	int id;

	if((id = msgget(0x58, 0)) >= 0){
		msgctl(id, IPC_RMID, 0);
	}
	if((id = semget(0x22, 3, 0)) >= 0){
		semctl(id, 0, IPC_RMID, 0);
	}
	if((id = shmget(0x10, 1, 0)) >= 0){
		shmctl(id, IPC_RMID, 0);
	}

	return 0;
}
